package com.gmldd.entity;
/**
 * Created by gmldd on 2016/7/31.
 */

import com.alibaba.fastjson.JSON;

import java.util.Date;

public class User {

    private int id;

    private String name;//名称

    private String password;//密码

    private int age;//年龄

    private Date born;//出生日期

    public void setId(int id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setBorn(Date born) {
        this.born = born;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public int getAge() {
        return age;
    }

    public Date getBorn() {
        return born;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
